package com.jzr.board.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.jzr.board.R
import com.jzr.board.bean.InspectReportListBean
import com.jzr.board.bean.TestReportListBean


class TestAdapter(data: MutableList<TestReportListBean.DataBean>?) :
    BaseQuickAdapter<TestReportListBean.DataBean, BaseViewHolder>(
        R.layout.item_test,
        data
    ) {


    override fun convert(helper: BaseViewHolder?, item: TestReportListBean.DataBean?) {

        helper?.setText(R.id.tvNumber, item?.risTestNumber)
        helper?.setText(R.id.tvRisReportDoctor, item?.risReportDoctor)
        helper?.setText(R.id.tvDate, item?.risTestDate)
        helper?.setText(R.id.tvTest, item?.reportName + "  "+item?.risTestClass + item?.risTestSubClass)
        helper?.setText(R.id.tvResDoctor, item?.risDoctorResults)
        helper?.setText(R.id.tvRes, item?.risTestResults)

    }


}